package asa;

public class ParenthesisExpr extends Expr {

    public ParenthesisExpr( Expr expr ) {
        this.expr = expr;
    }

    @Override
	public void genJava(PWInterface pw) {
    	genJava(pw, false);
    }

    @Override
	public void genJava(PWInterface pw, boolean putParenthesis ) {
        pw.print("(");
        expr.genJava(pw, false);
        pw.print(")");
    }

    private Expr expr;
}